#! /usr/bin/python3
# -*- coding: UTF-8 -*-

if __name__ == "__main__":
	raise Exception("不支持从这里调用")

__version__ = "1.0"
__all__ = ["MouseChshMessageModel"]

from com.mousechsh.business.lib.model.MouseChshCommonModel import MouseChshCommonModel
from com.mousechsh.common.data.MouseChshField import MouseChshBooleanField, MouseChshForeignStringField, \
	MouseChshJsonBinField, MouseChshStringField


class MouseChshMessageModel(MouseChshCommonModel):
	'''
	消息对象
	'''

	FromAppId = MouseChshForeignStringField('Id', linked_table='App')
	FromMemberId = MouseChshForeignStringField('Id', linked_table='Member')
	ToAppId = MouseChshForeignStringField('Id', linked_table='App')
	ToMemberId = MouseChshForeignStringField('Id', linked_table='Member')
	Title = MouseChshStringField('Title')
	Template = MouseChshForeignStringField('Id', linked_table='Template')
	Content = MouseChshJsonBinField('Content')
	FlagReceive = MouseChshBooleanField('FlagReceive')
	FlagRead = MouseChshBooleanField('FlagRead')
	Log = MouseChshStringField('Log')

	class Meta:
		SchemaName = 'A_Message'
		TableName = 'T_Message'
